package com.jml.责任链模式.企业分控系统.servlet;

import javax.servlet.*;
import java.io.IOException;


public class IndexServlet implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        /**
         * 第一关验证请求头过滤器
         * 第二关 httpsession过滤器
         * 第三关自定义过滤器
         * filterChain.doFilter();
         */
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {

    }
}
